var {cutImageplugin,commondata,top} = require('./modules/common')
var {
		studentmanage,
		returnvisit,
		editorStuInfo,
		studentImage,
		selectClass,
		dropClass,
		studentAttence,
		editorAttenceRecord,
		createNewClass,
		courseScheduling,
		timetableList,
		studentEntry,
		classAlbum,
		createAttendenceRecord,
		classdetail,
		changeClass,
		classtimes
		
} = require('./modules/educationmanage')
var {createCurriculum} = require('./modules/systemset')




module.exports = {
	state:{
		//导航栏数据
        nav : [],
        //首个菜单路径
        firstPath : null,
        //顶部导航栏数据(根据左侧导航点击动态变化)
        topNav : [],
        //权限数据
        permit : {},
        //当前校区id
        campusId : null,
        //排课列表
		courselist :[],
		//当前用户角色级别
        roleMode : null,
   	},
   	modules : {
   		cutImageplugin,//裁剪图片组件
		commondata,//公共数据
		top,
   		studentmanage,//学员信息详情组件
   		returnvisit,//回访组件
   		editorStuInfo,//编辑学员信息组件
   		studentImage,//学员图片组件
   		selectClass,//选班组件
   		dropClass,//退课组件
   		studentAttence,//学员出勤组件
   		editorAttenceRecord,//编辑考勤记录组件
   		createNewClass,//新建班级组件
   		courseScheduling,//排课组件
   		timetableList,//排课列表组件
   		studentEntry,//学员进班
   		classAlbum,//班级相册
   		createAttendenceRecord,//新增考勤记录
   		classdetail,//班级详情
		changeClass,//转班 	
		createCurriculum,//课程组件	
		classtimes
   	},
   	mutations : {
   		setNav : function(state,nav) {
   			state.nav = nav;
   		},
   		setFirstPath : function(state,firstPath) {
   			state.firstPath = firstPath;
   		},
   		setTopNav : function(state,topNav) {
   			state.topNav = topNav;
   		},
   		setPermit : function(state,permit) {
   			state.permit = permit;
   		},
   		setCampusId : function(state,campusId) {
   			state.campusId = campusId; 
   		},
   		setRoleMode : function(state,roleMode) {
			state.roleMode = roleMode; 
		},
   		clearAll : function(state) {
   			state.nav = [];
   			state.topNav = [];
   			state.permit = {};
   			state.campusId = null;
   			state.firstPath = null;
   			state.roleMode = null;
   		},
   		setCourselist :function(state,list){
   			state.courselist = list;
   		},
   		clearCourselist :function(state,list){
   			state.courselist = [];
		},
		
	}
}


